package com.heima.user.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.UserRelationDto;
import com.heima.user.service.ApUserLikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;



@RestController
@RequestMapping("/api/v1/user")
public class ApUserLikeController {
    @Autowired
    private ApUserLikeService apUserLikeService;

      //关注与取消关注
    @PostMapping("/user_follow")
    public ResponseResult userFollow(@RequestBody UserRelationDto dto){
      return   apUserLikeService.userFollow( dto );
    }
}
